package com.example.flowermall.service;

import com.example.flowermall.entity.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoman
 * @since 2023-07-10
 */
public interface IShoppingCartService extends IService<ShoppingCart> {

    List<ShoppingCart> select(String userId);

    void add(ShoppingCart shoppingCart);

    ShoppingCart getShoppingCartById(Integer id);

    void deleteCart(Integer id);

    void updateCart(ShoppingCart shoppingCart);

    List<ShoppingCart> getCartByUserId(Integer userId);


}
